window.onload=function(){
    var change = document.getElementsByClassName("change")[0];
    var list = change.getElementsByTagName("li");
    for (let i = 0; i < list.length; i++) {
        list[i].onclick = function () {
            for (var j = 0; j < list.length; j++) {
                list[j].className = "";
            }
            this.className = "active";
        }
    }
}